import {request} from './request.js'

export function getActivityApi(keyWord,status){
	return request({
		url: `/api/event/getEventList?keyWord=${keyWord}&status=${status}`,
		method: 'get'
	})
}

export function getActivityByStatus(page,limit,status){
	return request({
		url: `/api/event/getByCondition/${page}/${limit}?status=${status}`,
		method: 'get'
	})
}

export function getNoticeApi(noticeQueryVo){
	return request({
		url: '/api/notice/list',
		method: 'post',
		data: noticeQueryVo
	})
}

export function getTeamApi(teamQueryVo){
	return request({
		url: '/api/team/list',
		method: 'post',
		data: teamQueryVo
	})
}

export function getNoticeIdApi(id){
	return request({
		url: `/api/notice/getById?id=${id}`,
		method: 'get'
	})
}